import os
import sys

import matplotlib.pyplot as plt
import numpy as np


sys.path.append(os.path.abspath('.'))

root_path='/home/hfle/data_dog/low-resolution'

class_names=os.listdir(root_path)
total=list()
for c in class_names:
    img_path=os.path.join(root_path,c)
    img_num=len(os.listdir(img_path))
    total.append(img_num)

print(min(total),max(total),sum(total))

for i in [250,300,350,400,500,800,1000,2000,4000,6000]:
    print(len([lambda x:x for x in total if x<i]),i)

'''
result
200 7449

97 250
105 300
109 350
110 400
112 500
114 800
115 1000
120 2000
128 4000
129 6000


'''